package com.hqd.test;

import jdk.nashorn.internal.ir.debug.ObjectSizeCalculator;

import java.util.List;

class BB {
	double c;
	long d;
}

class AA extends BB {
	Integer a;
	Integer b;
	List ll;
	List l1;

	AA() {
	}
}

public class ObjSize {
	public static void main(String[] args) {
		AA a = new AA();
		System.out.println(ObjectSizeCalculator.getObjectSize(a) - ObjectSizeCalculator.getEffectiveMemoryLayoutSpecification().getObjectHeaderSize() - ObjectSizeCalculator.getEffectiveMemoryLayoutSpecification().getObjectPadding());
		System.out.println(ObjectSizeCalculator.getEffectiveMemoryLayoutSpecification().getObjectHeaderSize());
		System.out.println(ObjectSizeCalculator.getEffectiveMemoryLayoutSpecification().getObjectPadding());
	}
}
